﻿@model RegisterViewModel

<div style="width:100%;">
    <div style="float:right;">
        <div class="row">
            <div class="col-md-10">
                <div style="padding-left:15px;">
                    <a asp-action="ImportUsers" class="btn btn-default" style="padding:6px 40px;">批量导入用户</a>
                </div>
            </div>
        </div>
    </div>
</div>
<div style="clear:both;"></div>

<form asp-area="Admin" asp-controller="User" asp-action="Create" method="post" class="form-horizontal">
    <hr />
    <div asp-validation-summary="All" class="text-danger"></div>

    <div class="form-group">
        <label asp-for="PhoneNumber" class="col-md-2 control-label"></label>
        <div class="col-md-4">
            <input asp-for="PhoneNumber" class="form-control" />
            <span asp-validation-for="PhoneNumber" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group">
        <label asp-for="Password" class="col-md-2 control-label"></label>
        <div class="col-md-4">
            <input asp-for="Password" class="form-control" />
            <span asp-validation-for="Password" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group">
        <label asp-for="ConfirmPassword" class="col-md-2 control-label"></label>
        <div class="col-md-4">
            <input asp-for="ConfirmPassword" class="form-control" />
            <span asp-validation-for="ConfirmPassword" class="text-danger"></span>
        </div>
    </div>
    <div class="form-group">
        <label asp-for="Name" class="col-md-2 control-label"></label>
        <div class="col-md-4">
            <input asp-for="Name" class="form-control" />
            <span asp-validation-for="Name" class="text-danger"></span>
        </div>
    </div>
    @*<div class="form-group">
        <label asp-for="Email" class="col-md-2 control-label"></label>
        <div class="col-md-4">
            <input asp-for="Email" class="form-control" />
            <span asp-validation-for="Email" class="text-danger"></span>
        </div>
    </div>*@
    <div class="form-group">
        <label asp-for="Role" class="col-md-2 control-label"></label>
        <div class="col-md-4">
            <select asp-for="Role" asp-items="ViewBag.RoleList" class="form-control"></select>
        </div>
    </div>

    <div class="form-group">
        <label asp-for="DepartmentId" class="col-md-2 control-label"></label>
        <div class="col-md-4">
            <select asp-for="DepartmentId" asp-items="ViewBag.DepartmentList" class="form-control">
                <option value="0">请选择</option>
            </select>
            <span asp-validation-for="DepartmentId" class="text-danger"></span>
        </div>
    </div>
    
  
    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <button type="submit" class="btn btn-default col-md-2">创建</button>
        </div>
    </div>
</form>


@section Scripts {
    @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}
